<!--{*
/**
* @author Bimal Poudel
* @copyright since 2006, Bimal Poudel
* @package Smarty Framework
* @support http://www.odesk.com/users/~~dd91d11caed0cdce
* @contact http://www.sanjaal.com
* @company Sanjaal Corps
*/

Created on: 2011-03-26 02:03:52 890
*}-->

<div class="information">
	<ul class="links">
		<li><a href="posts-list.php"><img src="{'table'|icon}" title="List Posts" alt="List Posts" /> List Posts</a></li>
	</ul>
</div>

<div class="clear"><!--{*  style="clear:both;" *}--></div>

<form id="posts-add-form" name="posts-add-form" method="post" action="posts-add.php">
  <table class="data">


	<tr class="{cycle values='A,B'}">
	  <td class="attribute">Category</td>
	  <td><label>
	    <select name="posts[category_id]">{html_options options="microblog:categories"|dropdown selected=""}</select>
	  </label></td>
    </tr>
	<tr class="{cycle values='A,B'}">
		<td class="attribute">Post Title:</td>
		<td><input type="text" name="posts[post_title]" value="{$posts.post_title|htmlentities}" class="input" id="posts-post_title" /></td>
	</tr>

	<tr class="{cycle values='A,B'}">
		<td class="attribute">Post Descriptions:</td>
		<td class="value"><textarea rows="5" cols="50" name="posts[post_descriptions]" class="editor" id="posts-post_descriptions">{$posts.post_descriptions|htmlentities}</textarea></td>
	</tr>


    <tr class="{cycle values='A,B'}">
      <td class="attribute">&nbsp;</td>
      <td>
		<input type="text" name="email" value="" class="vanish" />
		<input type="text" name="is_spam" value="" class="vanish" />
		<!--{* 100% sure, only spammers fill these fields, Leave blank. *}-->
		
		<input type="hidden" name="protection_code" value="{$protection_code}" />
		<input type="hidden" name="add-action" value="Add Posts" />
		<input type="submit" name="submit-button" class="submit" value="Add" />
		Or, <a href="{url::last_page('posts-list.php')}">Cancel</a>      </td>
    </tr>
  </table>
</form>
<script type="text/javascript">
{if $category_id}
document.forms['posts-add-form'].elements['posts[category_id]'].value="{$category_id}";
{/if}
</script>

<!-- Add validation -->
<script type="text/javascript" src="js/validator/gen_validatorv31.js"></script>
{js src='validators/posts/add.js' validator=true}

<!-- Rich Editor: Remove if not necessary. Or, use different .js files -->
<script type="text/javascript" src="js/tinymce/tiny_mce.js"></script>
<script type="text/javascript" src="js/tinymce-textareas.js"></script>

<!-- End of posts Add -->